<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>chart</title>
    <script type="text/javascript" src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
    <script src="js/highcharts.js"></script>
    <script src="js/themes/gray.js"></script>
    <script src="js/modules/lang_Zh_CN.js"></script>

</head>
<body>

<div id="container" style="width: 50%; height: 400px; margin: 0 auto"></div>

<script>
    $(function () {
    $('#container').highcharts({
        credits:{
            enabled:false // 禁用版权信息
        },
        chart: {
            type: 'column'
        },
        title: {
            text: '饮食类行业走势图'
        },
        xAxis: {
            categories: ['肯德基', '麦当劳', '必胜客', '星巴克']
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Total fruit consumption'
            },
            stackLabels: {
                enabled: true,
                style: {
                    fontWeight: 'bold',
                    color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
                }
            }
        },
        legend: {
            align: 'right',
            x: -30,
            verticalAlign: 'top',
            y: 25,
            floating: true,
            backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
            borderColor: '#CCC',
            borderWidth: 1,
            shadow: false
        },
        tooltip: {
            headerFormat: '<b>{point.x}</b><br/>',
            pointFormat: '{series.name}: {point.y}<br/>合计: {point.stackTotal}'
        },
        plotOptions: {
            column: {
                stacking: 'normal',
                dataLabels: {
                    enabled: true,
                    color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
                    style: {
                        textShadow: '0 0 3px black'
                    }
                }
            }
        },
        series: [{
            name: '一月',
            data: [5, 3, 4, 7]
        }, {
            name: '二月',
            data: [2, 2, 3, 2]
        }, {
            name: '三月',
            data: [3, 4, 4, 2]
        }]
    });
    });
</script>
</body>
</html>